package com.momo.rabbitmq.receiver;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class HeaderReceiver {

    @RabbitListener(queues = "queue_age")
    public void handler1(String msg){
        System.out.println("queue-age:" + msg);
    }

    @RabbitListener(queues = "queue_name")
    public void handler2(String msg){
        System.out.println("queue-name:" + msg);
    }
}
